<div><h2>Please select a category</h2>
<?php foreach ($documentList as $document):?>
<div class="document">

<?php echo $document->getMetadata()->getTitle(); ?>

</div>
<?php endforeach?>
</div>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
	<input type="submit" id="button" value="click me" />
	<input type="hidden" id="action" value ="view" />
	<input type="hidden" id="controller" value="DocumentController" />
	<input type="hidden" id="model" value="DocumentDAO" />
	<input type="hidden" id="parameters" value="1" />
</form>